package com.lord.base.ws.demo;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

public class CXFClieant {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();  
        factory.setServiceClass(ICXFDemo.class);  
        factory.setAddress("http://localhost:9000/ws/HelloWorld");  
        ICXFDemo helloworld = (ICXFDemo) factory.create();  
        System.out.println(helloworld.sayHello("诗诗"));  
        System.exit(0);  
	}

}
